namespace Gj.Cache
{
    public interface ICache<K, V>
    {
        // return the value if key exists in cache, or -1 if not. 
        bool Get(K key, out V value);

        // add a new data entry to cache
        void Add(K key, V value);

        bool Contains(K key);
    }
}